package com.gewu.pm.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 下属打卡记录子项数据模型
 */
public class AttendanceRecordChildBean implements Parcelable {

    private String id;
    private String userName;
    private String userAvatar;
    private String signInTime;
    private String signOutTime;
    private int checkStatus; // 签到状态：0=未打卡，1=正常，2=迟到
    private int signOffStatus; // 签退状态：0=未打卡，1=正常，2=早退
    private String signInLocation;
    private String signOutLocation;
    private String signInPhotoUrl;
    private String signOutPhotoUrl;
    private String description;

    public AttendanceRecordChildBean() {
    }

    protected AttendanceRecordChildBean(Parcel in) {
        id = in.readString();
        userName = in.readString();
        userAvatar = in.readString();
        signInTime = in.readString();
        signOutTime = in.readString();
        checkStatus = in.readInt();
        signOffStatus = in.readInt();
        signInLocation = in.readString();
        signOutLocation = in.readString();
        signInPhotoUrl = in.readString();
        signOutPhotoUrl = in.readString();
        description = in.readString();
    }

    public static final Creator<AttendanceRecordChildBean> CREATOR = new Creator<AttendanceRecordChildBean>() {
        @Override
        public AttendanceRecordChildBean createFromParcel(Parcel in) {
            return new AttendanceRecordChildBean(in);
        }

        @Override
        public AttendanceRecordChildBean[] newArray(int size) {
            return new AttendanceRecordChildBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(userName);
        dest.writeString(userAvatar);
        dest.writeString(signInTime);
        dest.writeString(signOutTime);
        dest.writeInt(checkStatus);
        dest.writeInt(signOffStatus);
        dest.writeString(signInLocation);
        dest.writeString(signOutLocation);
        dest.writeString(signInPhotoUrl);
        dest.writeString(signOutPhotoUrl);
        dest.writeString(description);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getSignInTime() {
        return signInTime;
    }

    public void setSignInTime(String signInTime) {
        this.signInTime = signInTime;
    }

    public String getSignOutTime() {
        return signOutTime;
    }

    public void setSignOutTime(String signOutTime) {
        this.signOutTime = signOutTime;
    }

    public int getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(int checkStatus) {
        this.checkStatus = checkStatus;
    }

    public int getSignOffStatus() {
        return signOffStatus;
    }

    public void setSignOffStatus(int signOffStatus) {
        this.signOffStatus = signOffStatus;
    }

    public String getSignInLocation() {
        return signInLocation;
    }

    public void setSignInLocation(String signInLocation) {
        this.signInLocation = signInLocation;
    }

    public String getSignOutLocation() {
        return signOutLocation;
    }

    public void setSignOutLocation(String signOutLocation) {
        this.signOutLocation = signOutLocation;
    }

    public String getSignInPhotoUrl() {
        return signInPhotoUrl;
    }

    public void setSignInPhotoUrl(String signInPhotoUrl) {
        this.signInPhotoUrl = signInPhotoUrl;
    }

    public String getSignOutPhotoUrl() {
        return signOutPhotoUrl;
    }

    public void setSignOutPhotoUrl(String signOutPhotoUrl) {
        this.signOutPhotoUrl = signOutPhotoUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
